<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,app.stock.common.*,app.stock.web.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<div>
<div id="menu" align="center">
<ul>
	<li><a href="StockCtrl?page=transaction_list.jsp&action=query" target="_top"><%=Transaction.label%></a></li>
	<li><a href="StockCtrl?page=summary.jsp&action=query" target="_top"><%=Stock.label%></a></li>
	<li><a href="todo.jsp" target="_top">TODO</a></li>

</ul>
<label> </label> <span> <%
 	String currentUser = null;
 	if (request.getSession().getAttribute(WebConstants.sessionAttrName_Account) != null) {
 		currentUser = ((Account) request.getSession().getAttribute(WebConstants.sessionAttrName_Account)).name;
 	}
 	if (currentUser != null) {
 %> Welcome <a href="StockCtrl?action=logout"><%=currentUser%></a> <a
	href="StockCtrl?action=logout"><%=Constants.label_operationLogout%></a> <%
 	} else {
 %> <a href="login.jsp"><%=Constants.label_operationLogin%></a>
<%
	}
%> </span></div>
</div>